import request from "@/utils/request";

// 查询紫外线灯消毒记录列表
export function listLightDisinfect(query) {
  return request({
    url: "/zp/lightDisinfect/list",
    method: "get",
    params: query,
  });
}

// 紫外线灯消毒记录-未处理数量
export function unDisinfectNum(query) {
  return request({
    url: "/zp/lightDisinfect/unDisinfectNum",
    method: "get",
    params: query,
  });
}

// 查询紫外线灯消毒记录详细
export function getLightDisinfect(id) {
  return request({
    url: "/medical/lightDisinfect/" + id,
    method: "get",
  });
}

// 新增紫外线灯消毒记录
export function addLightDisinfect(data) {
  return request({
    url: "/zp/lightDisinfect",
    method: "post",
    data: data,
  });
}

// 修改紫外线灯消毒记录
export function updateLightDisinfect(data) {
  return request({
    url: "/medical/lightDisinfect",
    method: "put",
    data: data,
  });
}

// 删除紫外线灯消毒记录
export function delLightDisinfect(id) {
  return request({
    url: "/medical/lightDisinfect/" + id,
    method: "delete",
  });
}
